package com.burgeon.backend.SHOP.mappers;

import com.burgeon.backend.SHOP.entity.Assess;
import com.burgeon.backend.SHOP.entity.Goods;
import com.burgeon.backend.SHOP.entity.Order;
import com.burgeon.backend.SHOP.entity.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface AssessMapper {
    void usrassess(@Param("uid") String uid, @Param("token") String token, @Param("context") String context, @Param("gid") String gid, @Param("time") String time, @Param("phone") String phone);
    void deltedassess(@Param("uid") String uid, @Param("token") String token, @Param("aid") String aid);
    ArrayList<Assess> select(String gid);
    void updata(@Param("id") String id, @Param("hide") String hide);
    Assess selectbyid(String id);
    void updataa(@Param("id") String id, @Param("hidee") String hidee);

     List<Map> noassess(String uid);

     ArrayList<OrderItem> iscomment(String oid);

    ArrayList<Goods> selectbygoodsid(String gid);
    /*
    * 查询未评价的商品
    * */
    ArrayList<Goods> selectgoods(String oid);
}
